<template>
  <div class="kuaisu">
    <div class="head">
        <van-icon name="arrow-left" />
        <b>医生列表</b>
        <van-icon name="search" />
    </div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>1</van-swipe-item>
        <van-swipe-item>2</van-swipe-item>
        <van-swipe-item>3</van-swipe-item>
        <van-swipe-item>4</van-swipe-item>
    </van-swipe>
    <div class="zy">
      <div class="left">
        <span class="s">
          <b>快速提问</b>
          <h5>智能匹配医生</h5>
        </span>
        <span class="ss">
            <van-icon name="manager-o" />
        </span>
      </div>
      <div class="right">
        <span class="s">
          <b>开药门市</b>
          <h5>快速开方 送药上门</h5>
        </span>
        <span class="ss">
            <van-icon name="manager-o" />
        </span>
      </div>
    </div>
    <van-dropdown-menu>
        <van-dropdown-item v-model="value1" :options="option1" />
        <van-dropdown-item v-model="value2" :options="option2" />
        <van-dropdown-item v-model="value3" :options="option3" />
        <van-dropdown-item v-model="value4" :options="option4" />
    </van-dropdown-menu>
    <div class="doctor">
        <van-swipe-cell>
        <van-card
            num="2"
            price="2.00"
            desc="描述信息"
            title="商品标题"
            class="goods-card"
            thumb="https://img.yzcdn.cn/vant/cat.jpeg"
        />
        <template #right>
            <van-button square text="删除" type="danger" class="delete-button" />
        </template>
        </van-swipe-cell>
        <van-swipe-cell>
        <van-card
            num="2"
            price="2.00"
            desc="描述信息"
            title="商品标题"
            class="goods-card"
            thumb="https://img.yzcdn.cn/vant/cat.jpeg"
        />
        <template #right>
            <van-button square text="删除" type="danger" class="delete-button" />
        </template>
        </van-swipe-cell>
        <van-swipe-cell>
        <van-card
            num="2"
            price="2.00"
            desc="描述信息"
            title="商品标题"
            class="goods-card"
            thumb="https://img.yzcdn.cn/vant/cat.jpeg"
        />
        <template #right>
            <van-button square text="删除" type="danger" class="delete-button" />
        </template>
        </van-swipe-cell>
        <van-swipe-cell>
        <van-card
            num="2"
            price="2.00"
            desc="描述信息"
            title="商品标题"
            class="goods-card"
            thumb="https://img.yzcdn.cn/vant/cat.jpeg"
        />
        <template #right>
            <van-button square text="删除" type="danger" class="delete-button" />
        </template>
        </van-swipe-cell>
    </div>
  </div>
</template>

<script>
export default {
    data() {
    return {
      value1: 0,
      value2: 'a',
      value3: 'A',
      value4: '11',
      option1: [
        { text: '全部商品', value: 0 },
        { text: '新款商品', value: 1 },
        { text: '活动商品', value: 2 },
      ],
      option2: [
        { text: '默认排序', value: 'a' },
        { text: '好评排序', value: 'b' },
        { text: '销量排序', value: 'c' },
      ],
      option3: [
        { text: '推荐排行', value: 'A' },
        { text: '111111', value: 'B' },
        { text: '222222', value: 'C' },
      ],
      option4: [
        { text: '筛选', value: '11' }
      ],
    };
  },
}
</script>

<style lang="scss" scoped>
.kuaisu{
    width: 100%;
    height: 100%;
    .head{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 20px;
        margin-bottom: 15px;
    }
    .my-swipe .van-swipe-item {
        color: #fff;
        font-size: 20px;
        line-height: 120px;
        text-align: center;
        background-color: #39a9ed;
    }
    .zy{
    width: 100%;
    padding: 15px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left,.right{
      width: 45%;
      display: flex;
      align-items: center;
      justify-content: space-around;
      padding: 10px 0;
      color: #fff;
      border: 1px solid rgb(240, 237, 237);
      .van-icon{
        font-size: 30px;
      }
      .s{
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: rgb(41, 40, 40);
      }
      .ss{
          width: 40px;
          height: 40px;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 50%;
          background: rgb(130, 192, 243);
      }
    }
    }
    .goods-card {
        margin: 0;
        background-color: #fff;
    }

    .delete-button {
        height: 100%;
    }
}

</style>